<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <script>
        let p = new Promise((resolve, reject)=>{
            setTimeout(()=>{
                resolve('ok')
            },1000)
        })

        p.then(value =>{
            return 'success'
        }).then(value =>{
            console.log(value)
        })
    </script>
</body>
</html>